# intro  programs
# coding = utf8

import sys
sys.path.append('D:/Student_information_management_system/formal')

# import re

# 初始化,读取文件信息
def init():
    print( '初始化......\n读取文件信息' )

    file_object = open( 'D:/practice/a.txt', 'r', encoding='utf8' )

    for line in file_object.readlines():
        line = line.strip( '\n' )  # strip 删除

        s = line.split( " " )  # split 分割 ,用空格分割数据
        print(s)

        stulist.append(s )
    print(stulist)
    print( '初始化成功' )
    return stulist

if __name__ == "__main__":  # 判断文件入口
    stulist = []
    init()
